package homework.Demo2;

import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

public class Punishment {
    //抄写次数
    private int leftCount;
    //抄写内容
    private String copyWords;
    Lock lock = new ReentrantLock();

    public Punishment(String copyWords, int leftCount) {
        this.copyWords = copyWords;
        this.leftCount = leftCount;
    }

    public int getLeftCount() {
        return leftCount;
    }

    public void setLeftCount(int leftCount) {
        this.leftCount = leftCount;
    }

    public String getCopyWords() {
        return copyWords;
    }

    public void setCopyWords(String copyWords) {
        this.copyWords = copyWords;
    }
}

